home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 1.iso / util / cinstp15.zip / AUTOCALC.TXT < prev    next >
Text File  |  1995-01-18  |  4KB  |  96 lines

  1.                                 AUTOCALC.EXE
  2.                                 ------------
  3.  
  4. This program is a little utility to remove the tedium from working
  5. out the space requirements of your application when preparing your
  6. WINSTALL.INF file. It automates the process of calculating the space
  7. requirements and writes the results to a file which you can then
  8. import into your INF file.
  9.  
  10.  
  11. Specifically, the program does the following;
  12.  
  13. [a] read the $DISK      lines in your WINSTALL.INF file
  14. [b] read the $WINDIR    lines in your WINSTALL.INF file
  15. [c] read the $SYSDIR    lines in your WINSTALL.INF file
  16. [d] read the $TEMPDIR   lines in your WINSTALL.INF file
  17. [e] read the $OPTIONAL  lines in your WINSTALL.INF file
  18. [f] check for all the files on those lines
  19. [g] obtain the sizes of the files (if a file is compressed, it gets
  20.     the size of the expanded image of the file)
  21. [h] total the sizes of all the files in the installation set
  22. [i] total the sizes of the files that make up each user option
  23. [j] total the sizes of the files that go into the Windows directory
  24. [k] total the sizes of the files that go into the Windows SYSTEM directory
  25. [l] total the sizes of the files that go into the TEMP directory
  26.     (for $SWAP-SPACE)
  27. [m] add 0.5% to each of the figures, as a safety margin (because of disk
  28.     cluster sizes)
  29. [n] display the results on the screen
  30. [o] write the result into a file (OPTIONS.LOG), and/or the Windows clipboard
  31.     in the format required for the INF file (you can then paste from the
  32.     clipboard, or import the contents of the file into your INF file) to
  33.     replace the
  34.         $SPACE
  35.         $WINDIR-SPACE
  36.         $SYSDIR-SPACE
  37.         $SWAP-SPACE
  38.         $USER-OPTION
  39.     lines
  40.  
  41. It would be a lot easier if these lines were grouped togther, near the
  42. beginning of your INF file.
  43.  
  44. Please try to ensure that the directory in which the files are only
  45. contains files that will go on your installation disks - otherwise,
  46. the calculations might be wrong. Also, try to be a little specific
  47. in your use of wildcards (especially if your installation set consists
  48. of more than 1 disk) - e.g., do NOT do something like;
  49.  
  50.    $DISK1=*.*
  51.    $DISK2=*.*
  52.    $DISK3=*.??_
  53.    $DISK4=*.??_
  54.  
  55. This will only confuse the program, and the same files will be processed
  56. over and over again. One common cause of inaccurate space calculations
  57. by AUTOCALC is the indiscriminate use of wildcard characters. Please NOTE
  58. this point.
  59.  
  60.  
  61. The program is a simple Windows program. If run without any argument,
  62. it looks for WINSTALL.INF, and the installation files, in the current
  63. directory and writes its output to OPTIONS.LOG in the current directory.
  64. Note that only one directory is checked for the installation files. Thus
  65. it is advisable to have all your installation files in a single directory
  66. on a hard drive, and run this program there before copying the files onto
  67. floppies.
  68.  
  69.  
  70. It can also take 2 arguments. If arguments are used, they must be in the
  71. following format;
  72.  
  73. arg 1 = the directory in which your installation files are located
  74.         (your WINSTALL.INF file must also be in that directory)
  75. arg 2 = the name of the output file
  76.  
  77.  
  78. If you are going to use the *second* argument, you MUST use both of them
  79. (because the directory must always be the first argument).
  80.  
  81. e.g., if you have prepared all the file for your installation disks
  82.       and they are currently in a directory called C:\FINAL, waiting
  83.       for copying to the installation disks, you can run the following
  84.       command, to finalise you WINSTALL.INF file's details;
  85.  
  86.         AUTOCALC c:\final c:\temp\myopt.txt
  87.  
  88.      or
  89.  
  90.         AUTOCALC c:\final
  91.  
  92.  
  93. NOTE: AutoCalc sometimes gives you a negative value for $SPACE (or
  94. any of the others). In such cases, simply replace the negative value
  95. with a ZER0.
  96.